package com.hz.monitoring.module.hardware.controller.admin.monitoring_warning_log.vo;

import com.hz.monitoring.module.hardware.controller.admin.vo.CustomWarningAttribute;
import lombok.*;
import io.swagger.annotations.*;
import javax.validation.constraints.*;
import java.util.List;

/**
* 预警日志 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class MonitoringWarningLogBaseVO {

    @ApiModelProperty(value = "租户传感器id", required = true)
    @NotNull(message = "租户传感器id不能为空")
    private Long sensorTenantResourceId;

    @ApiModelProperty(value = "租户MCU id", required = true)
    @NotNull(message = "租户MCU id不能为空")
    private Long mcuTenantResourceId;

    @ApiModelProperty(value = "预警数据")
    private CustomWarningAttribute warningMetadata;

    @ApiModelProperty(value = "监测数据")
    private String monitoringValue;

    @ApiModelProperty(value = "预警日志")
    private String logTemplate;

    @ApiModelProperty(value = "租户编号")
    private Long tenantId;

}
